package mediadisplay.viewerarea 
{
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Anders Figenschow
	 */
	public class Rule extends Sprite
	{
		public var _startX:Number;
		public var _startY:Number;
		public var _startZ:Number;
		public var _startScale:int;
		public var _startColor:uint;
		public var _startAlpha:Number;
		
		public var _modX:Number;
		public var _modY:Number;
		public var _modZ:Number;
		public var _modScale:Number;
		public var _modColor:uint;
		public var _modAlpha:Number;
		
		public var _targetX:Number;
		public var _targetY:Number;
		public var _targetZ:Number;
		public var _targetScale:int;
		public var _targetColor:uint;
		public var _targetAlpha:Number;
		
		public var cameraFollow:Boolean = false;
		
		public function Rule() 
		{
			
		}
		public function setStart(startX:Number, startY:Number, startZ:Number, startScale:Number, startColor:uint, startAlpha:Number):void {
			_startAlpha = startAlpha;
			_startColor = startColor;
			_startScale = startScale;
			_startZ = startZ;
			_startY = startY;
			_startX = startX;
			
		}
		
		public function setTarget(targetX:Number, targetY:Number, targetZ:Number, targetScale:Number, targetColor:uint, targetAlpha:Number):void {
			_targetAlpha = targetAlpha;
			_targetColor = targetColor;
			_targetScale = targetScale;
			_targetZ = targetZ;
			_targetY = targetY;
			_targetX = targetX;
			
		}
			
		public function setRule(modX:Number, modY:Number, modZ:Number, modScale:Number, modColor:uint, modAlpha:Number):void {
			_modAlpha = modAlpha;
			_modColor = modColor;
			_modScale = modScale;
			_modZ = modZ;
			_modY = modY;
			_modX = modX;
			
		}
		
		public function setCameraFollow(value:Boolean):void {
			cameraFollow = value;
		}
		
		public function setRandomPosition():void {
			_startX = Math.random() * stage.stageWidth;
			_startY = Math.random() * stage.stageHeight;
			_startZ = Math.random() * 1000;
		}
	}

}


